FROM majiajue/jdk1.8:latest

ENV TZ=Asia/Shanghai
WORKDIR /opt

ENV SERVER_PORT=7788

EXPOSE ${SERVER_PORT}
ADD ./target/DataSources-1.0-SNAPSHOT.jar server.jar

ENV LD_LIBARY_PATH="/lib64:/lib"
CMD ["/bin/sh","-c","java -Djava.library.path=/lib64:/lib -jar /opt/server.jar"]
